package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.vo.DouyinVideoTotalVo;
import com.ruoyi.system.domain.DouyinVideo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * (DouyinVideo)表数据库访问层
 *
 * @author makejava
 * @since 2020-10-23 09:28:15
 */
@Repository
public interface DouyinVideoMapper {
    void batchAddVideo(@Param("douyinVideos") List<DouyinVideo> douyinVideos);

    List<DouyinVideo> getVideoList(@Param("openIds") List<String> openIds,
                                   @Param("userId") String userId);

    DouyinVideoTotalVo totalNum(@Param("openIds") List<String> openIds,
                                @Param("userId") String userId);

    List<DouyinVideo> getVideoListByData(@Param("openIds") List<String> openIds,
                                         @Param("userId") String userId,
                                         @Param("start") Date start,
                                         @Param("end") Date end);
}
